<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>用户角色管理--栏目</title>
<%@include file="../../common/tagInclude.jsp" %>
<%@include file="../../common/headerInclude.jsp" %>
<script type="text/javascript">
	$(function() {
		$("#jvForm").validate();
	});
	function edit(roleId){
		window.location = '${basePath}super/user/role-show.do?roleId='+roleId;
	}
</script>
</head>
<body>
<div class="body-box">
	<div class="rhead">
		<div class="rpos">当前位置: 首页  - 用户 - 角色管理 </div>
		<form class="ropt" method="get">
			<input type="submit" value="添加" onclick="this.form.action='${basePath}super/user/role-show.do';">
		</form>
		<div class="clear"></div>
	</div>
	<form action="${basePath}super/user/role-list.do" method="get" style="padding-top:5px;">
		<table class="pn-ltable" width="100%" cellspacing="1" cellpadding="0" border="0">
			<thead class="pn-lthead">
			<tr>
				<th width="20%">角色名称</th>
				<th>角色描述</th>
				<th width="10%">旗下成员</th>
				<th width="10%">操作</th>
			</tr>
			</thead>
			<tbody class="pn-ltbody">
			<c:forEach items="${roleList}" var="role" varStatus="status">
			<tr>
				<td align="left">&nbsp;&nbsp;${role.roleName}</td>
				<td align="center">${role.roleDesc}</td>
				<td align=center><a href="${basePath}super/user/user-list.do?roleId=${role.roleId}">旗下成员</a></td>
				<td align=center>
					<a href="javascript:edit('${role.roleId}');">编辑</a>&nbsp;&nbsp;
				</td>
			</tr>
			</c:forEach>
			</tbody>
		</table>
	</form>
</div>
</body>
</html>